<?php
 $project = get_entity ( $vars ['project_guid'] );
 $title = elgg_echo ( 'submana:allassignment' ) . $project->title;

// $group = get_entity ( $vars ['group_guid'] );
// elgg_push_breadcrumb ( $group->name, $group->getURL () );
// elgg_push_breadcrumb ( $title );

$content = elgg_view_title ( $title );
$assiglistview = elgg_list_entities ( array (
		'type' => "object",
		'subtype' => "assignment",
		'container_guid' => $vars ['project_guid'],
		'limit' => 30,
		'full_view' => TRUE,
		'pagination' => false 
		
) );

if ($assiglistview) {
	$content .= $assiglistview;
}

$sidebar = "";
$params = array (
		'content' => $content,
		'sidebar' => $sidebar 
);
$body = elgg_view_layout ( 'one_sidebar', $params );
// start building the main column of the page

echo elgg_view_page ( $title, $body );